﻿@model _1._6._2015_EntityFramework.Models.ItemsViewModel
@{
    ViewBag.Title = "Items";
}

<h2>Items</h2>
<table>
    <tr>
        <th>Description</th>
        <th>Price</th>
        <th>Edit</th>
    </tr>
    @foreach(var item in Model.Items)
    {
        <tr>
            <td>@item.Description</td>
            <td>@item.Price</td>
            <td>@Html.ActionLink("Edit", "EditItem", new { Id = item.ItemId })</td>
        </tr>
    }
</table>
